package cn.nawang.ebeim.api.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * @ClassName: SalesPackage
 * @Description: TODO
 * @author fanyb
 * @date Nov 4, 2015 9:11:41 AM
 * @version v1.0
 */
@Entity
@Table(name = "sales_package")
public class SalesPackage {
  
  private String id;
  
  /**
   * 销售套餐名称
   */
  private String salesPackageName;
  
  /**
   * 销售套餐总空间
   */
  private String spaceSize;
  
  /**
   * 用户数量
   */
  private int userCount;
  
  /**
   * 创建时间
   */
  private Long createTime;
  
  /**
   * 每个用户使用空间的大小
   */
  private String eachUserSpaceSize;
  
  /**
   * 套餐描述
   */
  private String description;

  @Id
  @Column(name = "id", unique = true, nullable = false, length = 45)
  @GeneratedValue(generator = "ID")
  @GenericGenerator(name = "ID", strategy = "uuid")
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  @Column(name = "sales_package_name")
  public String getSalesPackageName() {
    return salesPackageName;
  }

  public void setSalesPackageName(String salesPackageName) {
    this.salesPackageName = salesPackageName;
  }

  @Column(name = "space_size")
  public String getSpaceSize() {
    return spaceSize;
  }

  public void setSpaceSize(String spaceSize) {
    this.spaceSize = spaceSize;
  }

  @Column(name = "user_count")
  public int getUserCount() {
    return userCount;
  }

  public void setUserCount(int userCount) {
    this.userCount = userCount;
  }

  @Column(name = "create_time")
  public Long getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Long createTime) {
    this.createTime = createTime;
  }

  @Column(name = "each_user_space_size")
  public String getEachUserSpaceSize() {
    return eachUserSpaceSize;
  }

  public void setEachUserSpaceSize(String eachUserSpaceSize) {
    this.eachUserSpaceSize = eachUserSpaceSize;
  }

  @Column(name = "description")
  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }
}
